package com.weiyuwqj.server.service.account.module.action.user.invest;

import com.weiyuwqj.server.service.account.module.action.AbstractDealAction;
import com.weiyuwqj.api.constant.DealType;
import com.weiyuwqj.api.util.IpUtils;

import java.util.Date;

/**
 * Created by zhangyong on 2016/10/13.
 * 还款的金额支持提现
 */
public class ReceiveRepayCashDealAction extends AbstractDealAction {

    public ReceiveRepayCashDealAction() {
        log.setOperType(DealType.RECEIVE_REPAY);
    }

    @Override
    public void dealAccount() {
        log.setUsable(log.getOperMoney());
        log.setWait(log.getOperMoney().negate());
        log.setCash(log.getOperMoney());
        log.setBudgetType(1);
        log.setAddtime(new Date());
        log.setAddip(IpUtils.get());
    }
}
